package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatWarehouseFeign {

    @GetMapping(value = {"/wechat/member/wechatwarehousemgr/getordercheckopen"})
    String getOrderCheckOpen(@RequestParam("jsonObject")JSONObject jsonObject);

    @RequestMapping({"/wechat/member/wechatwarehousemgr/ajaxupdatewarehouse"})
    String ajaxUpdateWarehouse(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);

    @PostMapping(value = {"/wechat/member/wechatwarehousemgr/updatewarehousestatus"})
    String updateWarehouseStatus(@RequestParam("jsonObject")JSONObject jsonObject);
}
